package com.itheima.article.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.article.dto.ArticleHomeDto;
import com.itheima.article.pojo.ApArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description <p>已发布的文章信息 Mapper 接口</p>
 *
 * @version 1.0
 * @package com.itheima.article.mapper
 */
public interface ApArticleMapper extends BaseMapper<ApArticle> {

    /**
     * app端文章分页查询
     * @param pageInfo
     * @param dto
     * @param loadType
     * @return
     */
    List<ApArticle> pageList(IPage<ApArticle> pageInfo, @Param("dto") ArticleHomeDto dto, @Param("loadType") int loadType);
}
